Set default value of an enumeration attribute

Hello,

 

How to set the default value to be shown for an enumerated attribute in dxl?

I created an enumerated attribute with custom enumeration values. The values are available in the drop down. I need to set the first element in the attribute list to be displayed by default. But it is always shown as empty.

 

Any ideas or suggestions pls!!

Thank you


Adminani - Tue Jul 11 00:22:54 EDT 2017

Re: Set default value of an enumeration attribute
PekkaMakinen - Tue Jul 11 00:48:44 EDT 2017

You can modify attribute definitions after creation with the function modify, see "AttrDef modify(AttrDef old, [setproperty value,]  AttrDef new)" in DXL Reference.

 

ad = modify(ad, setDefault, "123")

Re: Set default value of an enumeration attribute
Adminani - Tue Jul 11 00:55:12 EDT 2017

PekkaMakinen - Tue Jul 11 00:48:44 EDT 2017

You can modify attribute definitions after creation with the function modify, see "AttrDef modify(AttrDef old, [setproperty value,]  AttrDef new)" in DXL Reference.

 

ad = modify(ad, setDefault, "123")

Thank You!!! This works fine!